import useRequest from "@/utils/request";

const request = useRequest({});
//首页-数据概况
export function countOrderDataByDay() {
  return request.get(`/cj-stadium/sys/home/countOrderDataByDay`);
}

//首页-数据中心
export function getDataCenter(params: any) {
  return request.get(`/cj-stadium/sys/home/getDataCenter`, {
    params,
  });
}

//首页-消息中心
export function getHomeNotify() {
  return request.get(`/cj-stadium/sys/home/getNotifyList`);
}

//首页-场馆销量榜单
export function getOrderDataByStadium() {
  return request.get(`/cj-stadium/sys/home/getOrderDataByStadium`);
}

//首页-会员统计
export function getMemberChange(params: any) {
  return request.get(`/cj-stadium/sys/home/getMemberChange`, {
    params,
  });
}

//首页-订单统计
export function getOrderCount(params: any) {
  return request.get(`/cj-stadium/sys/home/getOrderCount`, {
    params,
  });
}